package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_seckill_car")
@NoArgsConstructor
@AllArgsConstructor
public class TbSeckillCar implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private  Long id;

    private Long cid;

    private String title;

    @TableField(value = "small_pic")
    private String smallPic;

    private BigDecimal price;

    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    @TableField(value = "seller_id")
    private String sellerId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "check_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date checkTime;

    @TableField(value = "status")
    private String status;

    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;

    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    private Integer num;

    @TableField(value = "stock_count")
    private Integer stockCount;

    @TableField(value = "introduction")
    private String introduction;


}
